<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta charset="utf-8" />
		<title>{$current['title']}-{$Think.CONFIG.title}</title>

		<meta name="keywords" content="{$Think.CONFIG.keywords}" />
		<meta name="description" content="{$Think.CONFIG.description}" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />

		<include file="Public/head" />
   </head>

	<body class="no-skin">
		<include file="Public/header" />
		<div class="main-container" id="main-container">
			<script type="text/javascript">
				try{ace.settings.check('main-container' , 'fixed')}catch(e){}
			</script>

			<include file="Public/sidebar" />
			<div class="main-content">
				<div class="main-content-inner">
					<!-- #section:basics/content.breadcrumbs -->
					<include file="Public/breadcrumbs" />
					<!-- /section:basics/content.breadcrumbs -->
					<div class="page-content">
						<include file="Public/set" />

						<!-- /section:settings.box -->
						<div class="row">
							<div class="col-xs-12">
								<!-- PAGE CONTENT BEGINS -->
								<div class="cf">
									<a class="btn btn-info" href="{:U('add')}" value="">数据导入</a>
								</div>
								<div class="space-4"></div>
								<form id="form" method="post" action="{:U('del')}">
                                         <table id="ksxx" class="table table-striped table-bordered table-hover">
											<thead>
												<tr>
													<th class="center"><input type="checkbox" class="check-all" /></th>
													<th>考生号</th>
													<th>身份证</th>
													<th>姓名</th>
													<th>志愿1</th>
													<th>志愿2</th>
													<th>志愿3</th>
													<th>志愿4</th>
													<th>志愿5</th>
													<th>操作</th>
													</tr>
												</thead>
												<tbody>
												<volist name="list" id="val">		
													<tr>
														<td class="center"><input class="aids" type="checkbox" name="ksh[]" value="{$val['ksh']}"></td>
														<td>{$val['ksh']}</td>
														<td>{$val['sfzh']}</td>
														<td>{$val['xm']}</td>
														<td>{$val['zymc1']}</td>
                                                        <td>{$val['zymc2']}</td>
											            <td>{$val['zymc3']}</td>
											            <td>{$val['zymc4']}</td>
											            <td>{$val['zymc5']}</td>
														<td><a href="{:U(showinfo)}?id={$val['id']}"><i class="ace-icon fa fa-search-plus bigger-100"></i>查看</a>&nbsp;&nbsp;<a href="javascript:;" val="{:U('del')}?aids={$val['id']}" class="del"><i class="ace-icon fa fa-trash-o bigger-100 red"></i>删除</a></td>
													</tr>
												</volist>
												</tbody>
											</table>
											
                             	<span class="green">共有记录数{$recorders},每批显示{$pagesize}条，利用下面数字按钮切换</span>
                             	
								{$page}
								</form>
								
								<div class="cf">
									<input id="submit" class="btn btn-info" type="button" value="删除">&nbsp;
									<input id="submit" class="btn btn-info" type="button" value="数据清除">
								</div>
								
								<!-- PAGE CONTENT ENDS -->
							</div><!-- /.col -->
						</div><!-- /.row -->
					</div><!-- /.page-content -->
				</div>
			</div><!-- /.main-content -->
			<include file="Public/footer" />
			
		</div><!-- /.main-container -->

		<include file="Public/footerjs" />
		<!-- inline scripts related to this page -->
		<script type="text/javascript">
		$(function(){
			$(".check-all").click(function(){
				$(".aids").prop("checked", this.checked);
			});
			$(".aids").click(function(){
				var option = $(".ids");
				option.each(function(i){
					if(!this.checked){
						$(".check-all").prop("checked", false);
						return false;
					}else{
						$(".check-all").prop("checked", true);
					}
				});
			});
			$("#submit").click(function(){
				bootbox.confirm({
					title: "系统提示",
					message: "是否要删除所选文章？", 
					callback:function(result){
						if(result){
							$("#form").submit();
						}
					},
					buttons: {
						"cancel" : {"label" : "取消"},
						"confirm" : {
								"label" : "确定",
								"className" : "btn-danger"
							}
					}
				});
			});
			$(".del").click(function(){
				var url = $(this).attr('val');
				bootbox.confirm({
					title: "系统提示",
					message: "是否要该文章？", 
					callback:function(result){
						if(result){
							window.location.href = url;
						}
					},
					buttons: {
						"cancel" : {"label" : "取消"},
						"confirm" : {
								"label" : "确定",
								"className" : "btn-danger"
							}
					}
				});
			});
		})

		</script>
	

	<!--数据表部分函数-->
	<script src="__PUBLIC__/qwadmin/js/dataTables/jquery.dataTables.js"></script>
	<script src="__PUBLIC__/qwadmin/js/dataTables/jquery.dataTables.bootstrap.js"></script>

<script type="text/javascript">
			jQuery(function($) {
				var oTable1 = 
				$('#ksxx')
				//.wrap("<div class='dataTables_borderWrap' />")   //if you are applying horizontal scrolling (sScrollX)
				.dataTable( {
					bAutoWidth: false,
					"aoColumns": [
					  { "bSortable": false },
					  null, null,null, null, null,null,null,null,
					  { "bSortable": false }
					],
					"aaSorting": [ [8,'asc'],[7,'asc'],[6,'asc'],[5,'asc'],[4,'desc']]
					
			    } );
			
			})
		</script>



	</body>
</html>
